package com.frank.stock4j.tusharepro.bean;

import com.frank.stock4j.tusharepro.BaseBean;
import com.frank.stock4j.tusharepro.http.BaseRequestParam;

/**
* 描述：获取美股列表信息
* @author: codesmith
**/
public interface UsBasicBean extends BaseBean {
    String API_NAME = "us_basic";
    
    interface Fields {
    String ts_code = "ts_code";    //美股代码
    String name = "name";    //中文名称
    String enname = "enname";    //英文名称
    String classify = "classify";    //分类ADR/GDR/EQ
    String list_date = "list_date";    //上市日期
    String delist_date = "delist_date";    //退市日期
    }
    
    interface Params {
        ts_code ts_code = new ts_code();
        /*
        * AAPL（苹果）
        */
        class ts_code extends BaseRequestParam {
            { key = "ts_code"; }
        }
        classify classify = new classify();
        /*
        * ADR/GDR/EQ
        */
        class classify extends BaseRequestParam {
            { key = "classify"; }
        }
        offset offset = new offset();
        /*
        * 1：第一行
        */
        class offset extends BaseRequestParam {
            { key = "offset"; }
        }
        limit limit = new limit();
        /*
        * 500：每页500行
        */
        class limit extends BaseRequestParam {
            { key = "limit"; }
        }
    }
}